import { ActionButtonsTemplate, SelectOption } from '@/api/global/types'
import { UnwrapRef } from 'vue'

export type CurdData = {
  id: number
  cusname: string
  phone: string
  email: string
  qq: string
  wechat: string
  whatsapp: string
  dingtalk: string
  nickname: string
  password: string
  country: string
  address: string
  status: number
  stage: number
  tags: string
  loss: string
  owner: string
  partner: string | object
  custype: string
  cusnature: string
  source: string
  att_path: string
  remark: string
  create_time: string
  creator: number
  update_time: string
  updater: number
  is_del: number
  is_login: number
  login_num: number
  last_login_time: string
  last_ip: string
  login_status: number
  att_path_urls: object[]
  city: string
  last_followtime: string
  allocate_time: string
  is_advance: string
  role: string
}

export type FieldEnum = {
  status?: {}
  stage?: {}
  custype?: {}
  cusnature?: {}
  source?: {}
  login_status?: {}
  is_login?: {}
  tripartite_channel?: {}
  is_advance?: {}
}

export type SchemaConfig = {
  actionButtonsTemplate?: ActionButtonsTemplate
  fieldEnum?: FieldEnum
  formDialogSchema?
  countrySelectWithInputStore?
  tagsWithInputStore?
  ownerSelectWithInputStore?
  partnerSelectWithInputStore?
  uploadList?
  countrySelectOptions?: SelectOption[]
  operatorOptions?: SelectOption[]
  fileList?: object[]
  setValues?: UnwrapRef<any>
}
